package com.day11.ex03;

public class AnimalDemo {
    public static void main(String[] args) {
        Animal a=new Animal();
        a.setName("加菲");
        a.setAge(3);
        System.out.println(a.getName()+","+a.getAge());
        a.eat();
        Animal a2=new Animal("小艾",2);
        System.out.println(a2.getName()+","+a2.getAge());
        a2.eat();
    }
}
